package com.xzx.shop_front_api.service.impl;

import com.xzx.shop_front_api.entity.ApiAccount;
import com.xzx.shop_front_api.mapper.ApiAccountMapper;
import com.xzx.shop_front_api.service.ApiAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApiAccountServiceImpl implements ApiAccountService {
    @Autowired
    private ApiAccountMapper apiAccountMapper;
    @Override
    public int insertAccount(ApiAccount account) {
        return apiAccountMapper.insertAccount(account);
    }

    @Override
    public ApiAccount getAccountByUsername(String username) {
        return apiAccountMapper.getAccountByUsername(username);
    }
}
